package cate.common.table.activity.godtree.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.godtree.row.LevelRewardRow;

public class LevelRewardSheet extends ESheet<LevelRewardRow> {
    @Override
    public String getSheetName() {
        return "阶段奖励";
    }

    public LevelRewardRow getRowByLevel(int level) {
        for (LevelRewardRow row :
                getList()) {
            if (row.treeLevel == level) {
                return row;
            }
        }
        return null;
    }
}
